package org.example.service;

import org.example.pojo.DRole;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.pojo.select.DRoleSelect;
import org.example.utils.Result;

import java.util.Map;

/**
* @author chenhongkai
* @description 针对表【d_role】的数据库操作Service
* @createDate 2024-06-24 09:10:05
*/
public interface DRoleService extends IService<DRole> {

    public Result<Map> SelectAllRoles(DRoleSelect dRoleSelect);

    public Result<Map> AddRole(DRoleSelect dRoleSelect);

    public Result<Map> UpdateRoleState(DRole dRole);

    public Result<Map> DeleteRole(DRole dRole);

    public Result<DRole> SelectRoleOne(DRole dRole);

    Result<DRole> UpdateRoleOne(DRoleSelect dRoleSelect);
}
